package com.maxd.service.partner;

import com.maxd.bean.PageRes;
import com.maxd.bean.order.PartnerOrderDetail;
import com.maxd.bean.order.PartnerOrderUser;
import com.maxd.bean.partner.AddPartnerReq;
import com.maxd.model.OrderPartnerInfo;
import com.maxd.model.Orders;

import java.util.List;

/**
 * 合伙人管理
 */
public interface IPartnerService {

    PageRes<PartnerOrderUser> queryList(Integer pageNo, Integer pageSize, Long userId, Long partnerCode, String userName, String telephone, Long buyUserId, Long partnerTypeId);

    List<OrderPartnerInfo> queryList(Long userId, Long partnerCode, String userName, String telephone, Long buyUserId, Long partnerTypeId);

    Integer updateStatus(String orderId, String status);

    List<OrderPartnerInfo> queryUserPartnerList(Long partnerUserId, Long partnerTypeId);

    List<PartnerOrderDetail> queryUserPartnerDetails(Long userId, Long partnerTypeId);

    List<OrderPartnerInfo> queryUserPartnerOrders(Long userId, Long partnerTypeId);

    List<OrderPartnerInfo> queryWaitPayOrders(Long userId, Long partnerTypeId);

    void pointUpdateProcess(Orders orders);

    void addPartner(AddPartnerReq req);
}
